package com.itheima.weirpc.loadbalancer;

import com.itheima.weirpc.model.ServiceMetaInfo;

import java.util.List;
import java.util.Map;

/**
 * ClassName: LoadBalancer
 * Package: com.itheima.weirpc.loadbalancer.LoadBalancer
 * Description:
 *          负载均衡器
 * @Author 看到风
 * @Create 2024/12/13 11:01
 * @Version 1.0
 */
public interface LoadBalancer {
    /**
     * 请求服务调用
     * @param requestParams
     * @param serviceMetaInfoList
     * @return
     */
    ServiceMetaInfo select(Map<String,Object> requestParams, List<ServiceMetaInfo> serviceMetaInfoList);
}
